import type { resData_Inf } from "@/store/router/index.type";
import SystemManageRouter_Constants from "./router-systemManage";

/*
 * @Descripttion:
 * @LastEditors: xzh
 * @LastEditTime: 2024-06-11 22:08:23
 */
export default class DileRouter_Constants extends SystemManageRouter_Constants {
  /**
   * @Author: xzh
   * @Descripttion:一级菜单
   * @Param:
   */
  static rootArr: Array<resData_Inf> = [
    // {
    //   guid: "guid_equipManage",
    //   liDataName: "equipManage",
    //   //t("page.equipManage")
    //   liName: "page.equipManage",
    //   isChild: true,
    // },
    // {
    //   guid: "guid_moldManage",
    //   liDataName: "moldManage",
    //   //t("page.moldManage")
    //   liName: "page.moldManage",
    //   isChild: true,
    // },
    // {
    //   guid: "guid_abnormalManage",
    //   liDataName: "abnormalManage",
    //   //t("page.abnormalManage")
    //   liName: "page.abnormalManage",
    //   isChild: true,
    // },

    {
      guid: "guid_dashboardManage",
      liDataName: "dashboardManage",
      //t("page.dashboardManage")
      liName: "page.dashboardManage",
      isChild: true,
    },
    {
      guid: "guid_factoryManage",
      liDataName: "factoryManage",
      //t("page.factoryManage")
      liName: "page.factoryManage",
      isChild: true,
    },
    // {
    //   guid: "guid_productOrderManage",
    //   liDataName: "productOrderManage",
    //   //t("page.productOrderManage")
    //   liName: "page.productOrderManage",
    //   isChild: true,
    // },
    {
      guid: "guid_afterSaleManage",
      liDataName: "afterSaleManage",
      //t("page.afterSaleManage")
      liName: "page.afterSaleManage",
      isChild: true,
    },
    {
      guid: "guid_systemManage",
      liDataName: "systemManage",
      //t("page.systemManage")
      liName: "page.systemManage",
      isChild: true,
    },
    {
      guid: "guid_collectDataManage",
      liDataName: "collectDataManage",
      //t("page.dashboardManageArr.collectDataDashboard")
      liName: "page.dashboardManageArr.collectDataDashboard",
      isChild: true,
    },
  ];
  /**
   * @Author: xzh
   * @Descripttion: 售后服务管理
   * @Param:
   */
  static afterSaleManage: Array<resData_Inf> = [
    {
      guid: "guid_equipManage",
      parentGuid: "guid_afterSaleManage",
      liDataName: "equipManage",
      //t("page.equipManage")
      liName: "page.equipManage",
      liIcon: "menu",
      isChild: true,
    },

    //设备管理
    ...this.equipManage,
    {
      guid: "guid_moldManage",
      parentGuid: "guid_afterSaleManage",
      liDataName: "moldManage",
      //t("page.moldManage")
      liName: "page.moldManage",
      liIcon: "menu",
      isChild: true,
    },

    //模具管理
    ...this.moldManage,
    {
      guid: "guid_slaManage",
      parentGuid: "guid_afterSaleManage",
      liDataName: "slaManage",
      //t("page.slaManage")
      liName: "page.slaManage",
      liIcon: "menu",
      isChild: true,
    },
    //sla管理
    ...this.slaManage,
  ];
  /**
   * @Author: xzh
   * @Descripttion: 采集数据管理
   * @Param:
   */
  static collectDataManage: Array<resData_Inf> = [
    {
      guid: "guid_collectData",
      parentGuid: "guid_collectDataManage",
      liDataName: "collectData",
      //t("page.dashboardManageArr.collectDataDashboard")
      liName: "page.dashboardManageArr.collectDataDashboard",
      liHref:
        "dashboardManage/sellServiceDashboard/afterSale-equipDashboard/index",
    },
  ];
  /**
   * @Author: xzh
   * @Descripttion: 菜单数据源
   * @Param:
   */
  static routerArr: Array<resData_Inf> = [
    // 一级菜单
    ...this.rootArr,
    //数据看板
    ...this.dashboardManage,
    //售后服务管理
    ...this.afterSaleManage,
    //工厂管理
    ...this.factoryManage,
    //系统设置
    ...this.systemManage,
    //生产工单管理
    ...this.productOrderManage,
    //异常管理
    // ...this.abnormalManage,
    //采集数据
    ...this.collectDataManage,
  ];
}
